package com.bestcem.xm.om.dao.impl;

import com.bestcem.xm.om.dao.UserOrganizationDao;
import com.bestcem.xm.om.dao.mapper.UserOrganizationMapper;
import com.bestcem.xm.om.entity.readonly.UserOrganization;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;

/**
 * 组织机构集合DAO实现类
 *
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/10/12 14:17
 */
@Slf4j
@Repository
public class UserOrganizationDaoImpl implements UserOrganizationDao {

    @Resource
    private UserOrganizationMapper userOrganizationMapper;

    @Override
    public List<UserOrganization> listByIds(Collection<String> orgIds) {
        return userOrganizationMapper.listByIds(orgIds);
    }
}
